package cn.adkii.springframework.beans.factory.support;

import cn.adkii.springframework.beans.BeansException;
import cn.adkii.springframework.core.io.Resource;
import cn.adkii.springframework.core.io.ResourceLoader;

/**
 * @author malingdi
 * @description Bean 定义读取接口
 * @date 2023/11/23 10:41
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;
}


